package com.zhehekeji.opsys.api.entity;

// Generated 2016-5-18 15:42:18 by Hibernate Tools 3.4.0.CR1

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * TThemeMovie generated by hbm2java
 */
@Entity
@Table(name="t_theme_movie")
public class TThemeMovie implements java.io.Serializable {

	/** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = -8142882728279254112L;
	private Long id;
	private String code;
	private String name;
	private String relPrevueCode;
	private String relPrevueCodehd;
	private String relCode;
	private String relCodehd;
	private String poster;
	private String posterhd;
	private String cinema;
	private Date showTime;
	private String showAddress;
	private String profile;
	private Integer type;
	private Integer registNum;
	private Integer sequence;
	private Date updateTime;
	private Date createTime;
	private Integer status;
	private TTheme ttheme;
	private Long cpCode;

	private Integer verctrl;
	public TThemeMovie() {
	}
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ID",length=20,nullable=false,unique=true)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="CODE",length=64,nullable=true)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	@Column(name="NAME",length=128,nullable=true)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name="REL_PREVUE_CODE",length=64,nullable=true)
	public String getRelPrevueCode() {
		return this.relPrevueCode;
	}

	public void setRelPrevueCode(String relPrevueCode) {
		this.relPrevueCode = relPrevueCode;
	}
	@Column(name="REL_PREVUE_CODEHD",length=64,nullable=true)
	public String getRelPrevueCodehd() {
		return this.relPrevueCodehd;
	}

	public void setRelPrevueCodehd(String relPrevueCodehd) {
		this.relPrevueCodehd = relPrevueCodehd;
	}
	@Column(name="REL_CODE",length=64,nullable=true)
	public String getRelCode() {
		return this.relCode;
	}

	public void setRelCode(String relCode) {
		this.relCode = relCode;
	}
	@Column(name="REL_CODEHD",length=64,nullable=true)
	public String getRelCodehd() {
		return this.relCodehd;
	}

	public void setRelCodehd(String relCodehd) {
		this.relCodehd = relCodehd;
	}
	@Column(name="POSTER",length=1024,nullable=true)
	public String getPoster() {
		return this.poster;
	}

	public void setPoster(String poster) {
		this.poster = poster;
	}
	@Column(name="POSTERHD",length=1024,nullable=true)
	public String getPosterhd() {
		return this.posterhd;
	}

	public void setPosterhd(String posterhd) {
		this.posterhd = posterhd;
	}
	@Column(name="CINEMA",length=128,nullable=true)
	public String getCinema() {
		return this.cinema;
	}

	public void setCinema(String cinema) {
		this.cinema = cinema;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="SHOW_TIME")
	public Date getShowTime() {
		return this.showTime;
	}

	public void setShowTime(Date showTime) {
		this.showTime = showTime;
	}
	@Column(name="SHOW_ADDRESS",length=1024,nullable=true)
	public String getShowAddress() {
		return this.showAddress;
	}

	public void setShowAddress(String showAddress) {
		this.showAddress = showAddress;
	}
	@Column(name="PROFILE",nullable=true)
	public String getProfile() {
		return this.profile;
	}

	public void setProfile(String profile) {
		this.profile = profile;
	}
	@Column(name="TYPE",length=2,nullable=true)
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	@Column(name="REGIST_NUM",length=11,nullable=true)
	public Integer getRegistNum() {
		return registNum;
	}
	public void setRegistNum(Integer registNum) {
		this.registNum = registNum;
	}
	@Column(name="SEQUENCE",length=11,nullable=true)
	public Integer getSequence() {
		return this.sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="UPDATE_TIME")
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME")
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name="STATUS",length=2,nullable=true)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	@ManyToOne(cascade=CascadeType.REFRESH,fetch=FetchType.EAGER,optional=true)
	@JoinColumn(name="THEME_ID")
	public TTheme getTtheme() {
		return ttheme;
	}

	public void setTtheme(TTheme ttheme) {
		this.ttheme = ttheme;
	}
	@Column(name="CP_CODE",length=20,nullable=true)
	public Long getCpCode() {
		return this.cpCode;
	}

	public void setCpCode(Long cpCode) {
		this.cpCode = cpCode;
	}
	@Version
	@Column(name="VERCTRL",length=11,nullable=true)
	public Integer getVerctrl() {
		return verctrl;
	}

	public void setVerctrl(Integer verctrl) {
		this.verctrl = verctrl;
	}
}
